<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-image: url(img/bg.png);
        }
        .box{
            width: 200px;
            height: 200px;
            position: fixed;
            top: 460px;
            left: 500px;
            overflow: hidden;
            animation: move 5s forwards;

        }
        .bear{
            animation: move1 0.3s steps(8) infinite;
        }
        
        @keyframes move{
            to{
                left:1000px;
            }
        }
        @keyframes move1{
            to{
                transform:translateX(-100%);
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <img class="bear" src="img/bear.png" alt="">

    </div>
</body>
</html>